<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<h1>JSON对象创建</h1>
		<script>
			person={
				name:'jack',
				age:20,
				addr:{
					homeAddr:'太原小店区',
					workAddr:'太原万柏林区'
				}
			};
			alert(person.addr.homeAddr);
			alert(person["age"]);
			students=[
				{name:'znr',
				age:22},
				{name:'zhaolaoshi',
				age:23}
			];
			alert(students[1].age);
			s={
				"sites":[
				{
					"name":"菜鸟教程",
					"url":"www.runoob.com"
				}
				]
			};
			alert(s.sites[0].url);
		</script>
	</body>
</html>
